//
//  HomeDataTool.h
//  Traveling
//
//  Created by 尹桥印 on 15/6/4.
//  Copyright (c) 2015年 长沙市岳麓区立早网络科技有限公司. All rights reserved.
//

#import "BaseDataTool.h"
#import "TravelineRes.h"
#import "LocationListRes.h"
#import "ScenicoRes.h"
#import "TraveSpecialtyRes.h"
#import "HotelStayRes.h"
#import "HotelRoomRes.h"
#import "BannerRes.h"
#import "PlaneResultInfo.h"
#import "TrainResponse.h"

@interface HomeDataTool : BaseDataTool

/**
 *  获取旅游线路列表
 *
 *  @param maxId
 *  @param success
 *  @param failure
 */
+(void)getTravelineWithMaxId:(NSInteger)maxId success:(void (^)(TravelineRes *result))success failure:(void (^)(NSError *error))failure;

/**
 *  获取景点景区列表
 *
 *  @param maxId
 *  @param searchKey
 *  @param success
 *  @param failure
 */
+(void)getScenicoWithMaxId:(NSInteger)maxId searchKey:(NSString *)searchKey success:(void (^)(ScenicoRes *result))success failure:(void (^)(NSError *error))failure;


/**
 *  获取特产列表
 *
 *  @param maxId
 *  @param success
 *  @param failure
 */
+(void)getSpecialtyWithMaxId:(NSInteger)maxId success:(void (^)(TraveSpecialtyRes *result))success failure:(void (^)(NSError *error))failure;

/**
 *  获取酒店列表
 *
 *  @param maxId
 *  @param success
 *  @param failure
 */
+(void)getHotelWithMaxId:(NSInteger)maxId success:(void (^)(HotelStayRes *result))success failure:(void (^)(NSError *error))failure;

/**
 *  获取酒店房间列表
 *
 *  @param contentId
 *  @param success
 *  @param failure
 */
+ (void)getHotelRoomListWithContentId:(NSInteger)contentId success:(void (^)(HotelRoomRes *result))success failure:(void (^)(NSError *error))failure;

/**
 *  获取景区内景点导航坐标
 *
 *  @param contentId
 *  @param success
 *  @param failure
 */
+ (void)getLocationListWithContentId:(NSInteger)contentId success:(void (^)(LocationListRes *result))success failure:(void (^)(NSError *error))failure;
/**
 *  获取首页banner广告
 *
 *  @param success
 *  @param failure
 */
+ (void)getHomeAdvList:(void (^)(BannerRes *result))success failure:(void (^)(NSError *error))failure;

/**
 *  获取机票列表信息
 *
 *  @param params  参数
 *  @param success
 *  @param failure
 */
+ (void)getPlaneResultWithParams:(NSDictionary *)params success:(void (^)(PlaneResultInfo *result))success failure:(void (^)(NSError *error))failure;

/**
 *  获取火车票列表信息
 *
 *  @param startCity  开始城市
 *  @param endCity    结束城市
 *  @param targetTime 时间
 *  @param success
 *  @param failure
 */
+ (void)getTrainListWithStartCity:(NSString *)startCity endCity:(NSString *)endCity targetTime:(NSString *)targetTime success:(void (^)(TrainResponse *result))success failure:(void (^)(NSError *error))failure;



@end
